{% extends "base.html" %}
{% load i18n %}
{% load markup %}

{% block title %}{% trans "Documents" %} - {{ object.title }}{% endblock %}

{% block extrahead %}
<link rel="alternate" type="application/rss+xml" title="RSS 2.0"
      href="http://{{ site.domain }}/rss/documents/" />
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" 
      href="http://{{ site.domain }}/atom/documents/" />>
{% endblock %}

{% block content %}
<h2>{% trans "Documents" %}</h2>
<h3>{{ object.title }}</h3>
<p class="date">{{ object.pub_date|date:"l, F jS, Y" }}</p>
<p class="byline">{% trans "Posted by" %}{% ifnotequal object.user.get_full_name "" %} {{ object.user.get_full_name }}{% else %} {{ object.user.username }}{% endifnotequal %}</p>
{% ifnotequal object.summary '' %}{{ object.summary|markdown }}{% endifnotequal %}
<p>
{% trans "Download:" %}
<a href="{{ object.get_document_url }}">
<img src="/media/icons/document.png"/>{% trans "Original" %}</a>
{% ifnotequal document.content_type "pdf" %}
<a href=""><img src="/media/icons/text.png"/>{% trans "Text" %}</a>
<a href=""><img src="/media/icons/html.png"/>{% trans "HTML" %}</a>
{% endifnotequal %}
</p>
{% endblock %}
